import { createRouter,createWebHistory,RouteRecordRaw } from "vue-router";

const routes: Array<RouteRecordRaw> = [
    {
        path: '/',
        name: 'Reginst',
        component: () => import('../components/Reginst.vue')//注册页面
    },
    {
        path: '/Login',
        name: 'Login',
        component: () => import('../components/Login.vue')//登录页面
    },
    {
        path: '/UserInfoAdd/:U_Id',
        name: 'UserInfoAdd',
        component: () => import('../components/UserInfoAdd.vue')//用户详细信息页面
    },
    {
        path: '/InvestAdd',
        name: 'InvestAdd',
        component: () => import('../components/InvestAdd.vue')//投资项目添加页面
    },
    {
        path: '/InvestShow',
        name: 'InvestShow',
        component: () => import('../components/InvestShow.vue')//投资项目添加页面
    },
]

const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router  